const getters = {
    addRouters: state => state.permission.addRouters,
    userName: state => state.user.name,
    userAvatar: state => state.user.avatar,
    token: state => state.user.token,
    userInfo: state => {
        return {
            avatar: state.user.avatar,
            name: state.user.name
        }
    }
}

export default getters